//
//  TroopEntity.h
//  SpaceViking
//
//  Created by gnt on 1/11/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "cocos2d.h"
#import "CommonProtocols.h"

typedef enum {
    TroopType1=0,
    TroopType2,
    
    TroopType_MAX,
}TroopTypes;

@interface TroopEntity : CCSprite {
    TroopTypes type;
    float currentZ;
    int currentZMapIndex;
    float unshiftX;
    float unshiftY;
    Turn existedTurn;
    Boolean hit;
}
@property (readwrite) float currentZ;
@property (readwrite) int currentZMapIndex;
@property (readwrite) float unshiftX;
@property (readwrite) float unshiftY;
@property (readwrite) Turn existedTurn;
@property (readwrite) Boolean hit;

+ (id)troopWithType:(TroopTypes)troopType;
+ (int)getSpawnFrequencyForTreeType:(TroopTypes)treeType;
- (void)initSpawnFrequency;

@end
